﻿Public Class PluginInfo

    Public Property IsEnabled As Boolean
    Public Property Kind As PluginKinds
    Public Property Plugin As IPlugin
    Public Property Path As String
    Public Property Attribute As PluginAttribute
    Public Property ClassName As String

    Public Sub CreateInstance()
        Try
            Dim asm = System.Reflection.Assembly.LoadFrom(Path)
            Plugin = DirectCast(asm.CreateInstance(ClassName), IPlugin)
        Catch ex As Exception
#If DEBUG Then
            Stop
#End If
        End Try

    End Sub

End Class
